package led.control.home;

import led.control.home.R;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageButton;
import android.widget.LinearLayout;

public class MyButton extends ImageButton{
	
	
	private LinearLayout mLayout;

	public MyButton(Context context,AttributeSet set) {
		super(context,set);
	}
	
	
	
	private boolean isCheck = false;


	
	
	

	public LinearLayout getmLayout() {
		return mLayout;
	}



	public void setmLayout(LinearLayout mLayout) {
		this.mLayout = mLayout;
	}



	public boolean isCheck() {
		return isCheck;
	}



	public void setCheck(boolean isCheck) {
		this.isCheck = isCheck;
		if(isCheck){
			mLayout.setBackgroundResource(R.drawable.button_pessed);
		}else{
			mLayout.setBackgroundColor(0x000000000);
		}
	}
	
}
